package com.hs.auth.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * HsAccount entity. @author MyEclipse Persistence Tools
 */

public class HsAccount extends com.hs.core.model.BaseBean implements
		java.io.Serializable {

	// Fields

	private Integer id;
	//private Integer userid;
	private String loginid;
	private String password;
	private String logonip;
	private Integer status;
	private Integer loginnum;
	private Date createtime;
	private Integer creatuser;
	private HsUserinfo userinfo;
	private Set roleset = new HashSet();

	// Constructors

	public HsUserinfo getUserinfo() {
		return userinfo;
	}

	public void setUserinfo(HsUserinfo userinfo) {
		this.userinfo = userinfo;
	}

	public Set getRoleset() {
		return roleset;
	}

	public void setRoleset(Set roleset) {
		this.roleset = roleset;
	}

	/** default constructor */
	public HsAccount() {
	}

	/** minimal constructor */
	public HsAccount(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public HsAccount(Integer id, Integer userid, String loginid,
			String password, String logonip, Integer status, Integer loginnum,
			Date createtime, Integer creatuser) {
		this.id = id;
		 
		this.loginid = loginid;
		this.password = password;
		this.logonip = logonip;
		this.status = status;
		this.loginnum = loginnum;
		this.createtime = createtime;
		this.creatuser = creatuser;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	 

	public String getLoginid() {
		return this.loginid;
	}

	public void setLoginid(String loginid) {
		this.loginid = loginid;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getLogonip() {
		return this.logonip;
	}

	public void setLogonip(String logonip) {
		this.logonip = logonip;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getLoginnum() {
		return this.loginnum;
	}

	public void setLoginnum(Integer loginnum) {
		this.loginnum = loginnum;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getCreatuser() {
		return this.creatuser;
	}

	public void setCreatuser(Integer creatuser) {
		this.creatuser = creatuser;
	}

}